package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;

/**
 * <p>
 * 店铺账户表
 * </p>
 *
 * @author xiaoky
 * @since 2019-06-04
 */
public class BAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bid", type = IdType.INPUT)
    private Integer bid;

    /**
     * 店铺余额
     */
    private BigDecimal money;
    
    /**
     * 冻结余额
     */
    private BigDecimal freezeMoney;
    
    /**
     * 店铺积分
     */
    private BigDecimal point;
    
    /**
     * 线下商家收款码保存金额
     */
    private BigDecimal qrMoney;

    /**
     * 版本号用作于乐观锁
     */
    @Version
    private Integer version;
    
    public BigDecimal getFreezeMoney() {
		return freezeMoney;
	}

	public void setFreezeMoney(BigDecimal freezeMoney) {
		this.freezeMoney = freezeMoney;
	}

	public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    
    public BigDecimal getPoint() {
		return point;
	}

	public void setPoint(BigDecimal point) {
		this.point = point;
	}

	public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public BigDecimal getQrMoney() {
		return qrMoney;
	}

	public void setQrMoney(BigDecimal qrMoney) {
		this.qrMoney = qrMoney;
	}

    @Override
    public String toString() {
        return "BAccount{" +
        "bid=" + bid +
        ", money=" + money +
        ", version=" + version +
        "}";
    }
}
